package com.ecs.to_tos_service.mapper.tos;

import com.ecs.to_tos_service.domain.GtsOuttruckRecord;
import com.ecs.to_tos_service.domain.GtsOuttruckRecordExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GtsOuttruckRecordMapper {
    long countByExample(GtsOuttruckRecordExample example);

    int deleteByExample(GtsOuttruckRecordExample example);

    int deleteByPrimaryKey(Long otrId);

    int insert(GtsOuttruckRecord record);

    int insertSelective(GtsOuttruckRecord record);

    List<GtsOuttruckRecord> selectByExample(GtsOuttruckRecordExample example);

    GtsOuttruckRecord selectByPrimaryKey(Long otrId);

    GtsOuttruckRecord selectByPrimary2Key(Long otrId,String otrNull);

    GtsOuttruckRecord selectByResultMap(@Param("otrId") Long otrId);

    GtsOuttruckRecord selectByResultMap2(@Param("otrId") Long otrId);



    int updateByExampleSelective(@Param("record") GtsOuttruckRecord record, @Param("example") GtsOuttruckRecordExample example);

    int updateByExample(@Param("record") GtsOuttruckRecord record, @Param("example") GtsOuttruckRecordExample example);

    int updateByPrimaryKeySelective(GtsOuttruckRecord record);

    int updateByPrimaryKey(GtsOuttruckRecord record);
}